import { DevicePathEnum, getDeviceType } from '../utils/device'

export const useDevice = ()=>{
     // 获取用户代理字符串  
     const userDevice = getDeviceType();  
     const device = DevicePathEnum[userDevice]
     const isGoPath = (path: string)=>{
        if(path !== device){
            return true
        }

        return false
     }
        
    return {
        path: DevicePathEnum[userDevice],
        isGoPath
    }
}
